package com.gitee.wsl.mathematics.projection.viewport

import com.gitee.wsl.mathematics.projection.ViewportScaler
import com.gitee.wsl.mathematics.projection.camera.Camera3D
import com.gitee.wsl.mathematics.projection.camera.OrthographicCamera3D


/**
 * A viewport that supports using a virtual size. The virtual viewport is stretched to fit the
 * screen. There are no black bars and the aspect ratio can change after scaling.
 */
open class StretchViewport(
    virtualWidth: Int,
    virtualHeight: Int,
    camera: Camera3D = OrthographicCamera3D()
) : ScalingViewport(ViewportScaler.Stretch(), virtualWidth, virtualHeight, camera)
